/*
 *
 * File Name          :  Sound.h
 * Description        :  Clock Counter.
 */

#ifndef SOUND_H
#define SOUND_H

#include <stdint.h>

#define SOUND_BUFFER_LENGTH 4096
#define SOUND_BUFFER_TYPE_INT16_T

#ifdef SOUND_BUFFER_TYPE_INT16_T
#define SOUND_BUFFER_TYPE int16_t
#elif defined(SOUND_BUFFER_TYPE_FLOAT)
#define SOUND_BUFFER_TYPE float
#endif

int16_t Sound_Init(void);
SOUND_BUFFER_TYPE *Sound_Get_AudioBuffer(void);
int32_t Sound_Get_AudioBuffer_Size(void);
int32_t Sound_Position(SOUND_BUFFER_TYPE *dest, const int16_t *src, int32_t destLength, int32_t srcLength);
enum MENU_code Sound_FillBuffer(void);
float Sound_GetAzimuth(void);

#endif